using UnityEngine;
/// <summary>
/// 落地状态
/// </summary>

public class PlayerLandState : PlayerState
{
    public PlayerLandState(PlayerFSM manager, string animationName) : base(manager, animationName) { }

    public override void OnEnter()
    {
        base.OnEnter();
    }

    public override void OnUpdate()
    {
        base.OnUpdate();
        
        if (PlayComplete())
        {
            manager.TransitionState(StateType.Idle);
        }
        if (parameter.HasJumpInputBuffer || parameter.isJump)
        {
            manager.TransitionState(StateType.Jump);
        }
    }

    public override void OnFixedUpdate()
    {
        base.OnFixedUpdate();
    }

    public override void OnExit() {
        base.OnExit();
     }
}
